<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Ingresar Canjeo</title>
        <link href="../../../estilos.css" rel="stylesheet" type="text/css"/>
    </h:head>
    <h:body>
        <f:view>
            <h:form>
                <h1><h:outputText value="Ingresar Canjeo"/></h1>
                <h:panelGrid columns="2">
                    <h:outputLabel value="IdTarjeta:" for="idTarjeta" />
                    <h:selectOneMenu id="idTarjeta" value="#{canjeoManagedBean.canjeo.idTarjeta}" title="IdTarjeta" >
                        <!-- TODO: update below reference to list of available items-->
                        <f:selectItems value="#{canjeoManagedBean.listaTarjetas}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="IdPremio:" for="idPremio" />
                    <h:selectOneMenu id="idPremio" value="#{canjeoManagedBean.canjeo.idPremio}" title="IdPremio" >
                        <!-- TODO: update below reference to list of available items-->
                        <f:selectItems value="#{canjeoManagedBean.listaPremios}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandButton action="#{canjeoManagedBean.crearCanjeo}" type="submit" id="Enviar" value="Enviar"/>
            </h:form>
        </f:view>

    </h:body>
</html>

